export default {
  transformDecimal(number, decimalLength) {
    let str = number.toString()
    let decimal = str.indexOf('.')

    if (decimal < 0) {
      decimal = str.length
      str += '.'
    }

    while (str.length <= decimal + decimalLength) {
      str += '0'
    }
    
    return str
  }
}